/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model.Servicios;

import Model.Beans.Answer;
import Model.DAO.AnswerDAO;
import java.util.List;

/**
 *
 * @author Pashi
 */
public class AnswerSrv {
    private AnswerDAO aDAO = new AnswerDAO();

    public List<Answer> getAnswer(){
        return aDAO.getAll(Answer.class);
    }

    public void deleteById(String idA) {
        aDAO.borrar(aDAO.getAnswer(Integer.parseInt(idA)));
    }
      public void insertAnswer(Answer answer){
        aDAO.insertar(answer);
    }
}
